package pl.un4giv3n.mightvsmagic.admin.action;

import java.util.Date;

public class PremiumBonusHolder {
	private static Date premiumEndDate = null;

	public static Date getPremiumEndDate() {
		return premiumEndDate;
	}

	public static void setPremiumEndDate(Date premiumEndDate) {
		PremiumBonusHolder.premiumEndDate = premiumEndDate;
	}
	
	public static boolean isPremiumBonusActive(){
		if(premiumEndDate == null){
			return false;
		}
		return new Date().compareTo(premiumEndDate) <= 0;
	}
}
